﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;

namespace Company.Merchandising.ServiceLayer.MenuManagement
{
    public class MenuConfigurationSection : ConfigurationSection
    {
        [ConfigurationProperty("menuFilePath", IsRequired=true)]
        public string MenuFilePath
        {
            get
            {
                return this["menuFilePath"] as string;
            }
            set
            {
                this["menuFilePath"] = value;
            }
        }

        [ConfigurationProperty("emptyAsAllowed", IsRequired = true, DefaultValue=false)]
        public bool EmptyAsAllowed
        {
            get
            {
                return (bool)this["emptyAsAllowed"];
            }
            set
            {
                this["emptyAsAllowed"] = value;
            }
        }
    }
}
